package com.ctgu.tengyun.domain;

import com.ctgu.tengyun.bean.FileBean;

import java.io.Serializable;
import java.util.Date;

public class ProductInfo implements Serializable {

    public static final Composer<Integer, ProductInfo> ID_COMPOSER = ProductInfo::getId;
    public static final Composer<String, ProductInfo> PRODUCT_NO_COMPOSER = ProductInfo::getProductNo;


    /**
     * 主键id
     */
    private Integer id;

    /**
     * 产品名称
     */
    private String name;

    /**
     * 产品型号
     */
    private String productNo;

    /**
     * 三维视频地址
     */
    private FileBean videoFile;

    /**
     * 总装配图
     */
    private FileBean designFile;

    /**
     * 电气图
     */
    private FileBean electricFile;

    /**
     * 产品状态,1-正常，2-停用
     */
    private Integer productStatus;

    /**
     * 出厂编号
     */
    private String factoryCode;

    /**
     * 生产日期
     */
    private Date produceDate;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 是否有效,0-无效，1-有效
     */
    private Integer isValid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后更新时间
     */
    private Date lastModifyTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public FileBean getVideoFile() {
        return videoFile;
    }

    public void setVideoFile(FileBean videoFile) {
        this.videoFile = videoFile;
    }

    public FileBean getDesignFile() {
        return designFile;
    }

    public void setDesignFile(FileBean designFile) {
        this.designFile = designFile;
    }

    public FileBean getElectricFile() {
        return electricFile;
    }

    public void setElectricFile(FileBean electricFile) {
        this.electricFile = electricFile;
    }

    public Integer getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(Integer productStatus) {
        this.productStatus = productStatus;
    }

    public String getFactoryCode() {
        return factoryCode;
    }

    public void setFactoryCode(String factoryCode) {
        this.factoryCode = factoryCode;
    }

    public Date getProduceDate() {
        return produceDate;
    }

    public void setProduceDate(Date produceDate) {
        this.produceDate = produceDate;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", productNo=").append(productNo);
        sb.append(", videoFile=").append(videoFile);
        sb.append(", designFile=").append(designFile);
        sb.append(", electricFile=").append(electricFile);
        sb.append(", productStatus=").append(productStatus);
        sb.append(", factoryCode=").append(factoryCode);
        sb.append(", produceDate=").append(produceDate);
        sb.append(", version=").append(version);
        sb.append(", isValid=").append(isValid);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastModifyTime=").append(lastModifyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}